package com.banshuibao.bsb_android.activity;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.banshuibao.bsb_android.R;

public class ApplyToExpertTwoActivity extends BaseActivity {

    private TextView phone;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_apply_to_expert_two);
        initView();
    }

    private void initView() {
        setTitleText("申请做答疑专家");
        phone = findViewById(R.id.tel);
        phone.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(Intent.ACTION_DIAL);
                Uri data = Uri.parse("tel:" + getResources().getString(R.string.apply_telphone));
                intent.setData(data);
                startActivity(intent);
            }
        });
    }
}
